Snapcraft go plugin install issues
Metadata
Current evaluation
No evaluation has been recorded for this issue yet.
Issue body
Trying to snap godoc I run into this golang bug:
https://github.com/golang/go/issues/15106
Sample run:
$ snapcraft
Preparing to pull godoc
Pulling godoc
go get -t -d golang.org/x/tools/cmd/godoc
Preparing to build godoc
Building godoc
go install golang.org/x/tools/cmd/godoc
go install golang.org/x/tools/cmd/godoc: open /usr/lib/go-1.6/bin/godoc: permission denied
Command '['/bin/sh', '/tmp/tmpws7rhnp0', 'go', 'install', 'golang.org/x/tools/cmd/godoc']' returned non-zero exit status 1
(See attached snapcraft.yaml)
Basically godoc is special and go install tries to put it in $GOROOT/bin instead of $GOPATH/bin
Even when when this is fixed in golang, snapcraft should NOT allow to install into $GOROOT or give the user a way out, like building without installing or forcing installation path within the snap environment.
Evaluation history
No evaluation history available.